<layout name='../Layout/frame_main' />

<body>
<div class="container-fluid">
	<div class="row-fluid">
		<div class="span12">
			<div class="page-header">
				<h2>
					用户列表
				</h2>
			</div>
			<?php 
			if(count($list)==0)
			{
				echo '<h4>暂时没有数据</h4>';
			}
			else
			{
			?>
			<table class="table table-bordered table-hover table-condensed">
				<thead>
					<tr>
						<th>
							编号
						</th>
						<th>
							名称
						</th>
						<th>
							角色
						</th>
						<th>
							上次登录时间
						</th>
						<th>
							删除
						</th>

					</tr>
				</thead>
				<tbody>
					<volist name="list" id="vo">
					<tr >
						<td>
							{$vo.adm_id}
						</td>
						<td>
							{$vo.adm_name}
						</td>
						<td>
							{$vo.adm_role}
						</td>
						<td>
							{$vo.adm_time}
						</td>
						<td>
						<a data-toggle="modal" class="btn btn-danger" role="button" href="#myModal{$vo.adm_id}">删除</a>
						</td>
							<form id="form{$vo.adm_id}" action="__URL__/del/adm_id/{$vo.adm_id}" method='get'>
							  <div id="myModal{$vo.adm_id}" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
							    <div class="modal-header">
							      <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
							      <h3 id="myModalLabel">系统确认</h3>
							    </div>
							    <div class="modal-body">
							      <p>确定要删除编号为【{$vo.pro_id}】，商品名称为【{$vo.pro_name}】 的数据吗？数据删除将导致无法恢复！点击【关闭】退出继续操作，点击【确认删除】进行删除数据操作。</p>
							    </div>
							    <div class="modal-footer">
							      <button class="btn" data-dismiss="modal" aria-hidden="true" id="clbtn{$vo.adm_id}">关闭</button>
							      <button class="btn btn-danger" type="submit">确认删除</button>
							    </div>
							  </div>
							</form>
					</tr>
				</volist>
				</tbody>
			</table>
			<div class="pagination pagination-centered">
				<ul>
					<li>{$page}</li>
				</ul>
			</div>
			<?php } ?>
		</div>
	</div>
	<div class="row-fluid">
		<div class="span12">
		</div>
	</div>
</div>
</body>
<script type="text/javascript">
$(function(){
	$('.btn.btn-primary.see').click(function(){
		GoToUrl($.trim($(this).parent().parent().children(':first').html()));
	});
})
function GoToUrl(id)
{
	location.href="__URL__/newp/pro_id/"+id;
}
</script>
